package practise.interview;

import org.junit.Assert;
import org.junit.Test;
import org.springframework.test.annotation.ExpectedException;

/**
 * Created by richard on 4/27/14.
 */
public class FilterOutIpAddressTest {

    @Test
    @ExpectedException(Exception.class)
    public void voidTest() throws Exception {
        FilterOutIpAddress filterOutIpAddress = new FilterOutIpAddress();
        Assert.assertEquals(4, filterOutIpAddress.patternSpliter("1.1.1.1").length); 
    }
}
